//
//  TableviewCellRound.m
//  demoTableViewMutableSelected
//
//  Created by yuanweitiansheng on 17/4/13.
//  Copyright © 2017年 yuanweitiansheng. All rights reserved.
//

#import "TableviewCellRound.h"

@implementation TableviewCellRound
- (void)layoutSubviews
{
    [super layoutSubviews];
    /**
     */
    CGSize size=self.imageView.frame.size;
    self.imageView.layer.cornerRadius = size.height/ 2;
    self.imageView.layer.masksToBounds = YES;
}
-(void)tcChaneImageviewSize:(CGSize)size
{
    UIGraphicsBeginImageContextWithOptions(size, NO, UIScreen.mainScreen.scale);
    CGRect imageRect = CGRectMake(0.0, 0.0, size.width, size.height);
    [self.imageView.image drawInRect:imageRect];
    self.imageView.image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
}
@end
